<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="wang_style.css">
</head>
<body>
<!--设置光标的颜色-->
<div id="editor-container" style="caret-color:red;padding:0px;"></div>
<script type="text/javascript" src="wang_editor_index.js"></script>
<script>
const { createEditor, createToolbar } = window.wangEditor

const editorConfig = {
    placeholder: '开始输入正文'
}

const editor = createEditor({
    selector: '#editor-container',
    html: '<p><br></p>',
    config: editorConfig,
    mode: 'simple', //default or 'simple'
})

</script>
<script type="text/javascript" src="wang_app_editor.js"></script>
</body>
</html>
